//
//  LZCurrentUserInfo.h
//  laziz_Consumer
//
//  Created by ZhaoDongBo on 2016/11/17.
//  Copyright © 2016年 XBN. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface LZCurrentUserInfo : NSObject<NSCoding>

@property (nonatomic, strong) NSString * token;         //  string	token 其他需要token的接口需要传此值，作为用户登陆凭据
@property (nonatomic, strong) NSString * sellerId;      //	string	当前用户所属的商户ID
@property (nonatomic, strong) NSString * userId;        //	string	用户ID
@property (nonatomic, strong) NSString * sellerName;    //	string	餐厅名称
@property (nonatomic, strong) NSString * sellerPhoto;   //	string	餐厅头像的url
@property (nonatomic, strong) NSString * userType;      //	string	用户类型 3 商户管理员(老板) 5商户员工
@property (nonatomic, assign) NSInteger  merchantState; //	byte	商户状态 0 商户未认证 1 待审核 2 正常 3 审核退回 4 已停用
@property (nonatomic, strong) NSString * role;          //	string	员工权限 当userType为3 时此字段有返回值 1结账 2 发优惠 3 结账和发优惠
@property (nonatomic, assign) BOOL       hasPassword;   //          是否设置密码
@property (nonatomic, strong) NSString * email;          //邮箱
@property (nonatomic, strong) NSString * cellphone;      //手机

+(void)setUserInfoWithModel:(LZCurrentUserInfo*)model;
+(LZCurrentUserInfo*)getUserInfoModel;

@end
